package com.neusoft;
/*
 * 3.循环输出以下结果： 
		2*5=10 
		4*10=40 
		6*15=90 
		…… 
		?*100=?
 */
public class Ex3 {

	public static void main(String[] args) {
		//while
		/*int i = 2;
		int j = 5;
		while(j<=100){
			System.out.println(i+"*"+j+"="+i*j);
			i+=2;
			j+=5;
		}*/
		
		//for
		for(int i=2,j=5;j<=100;i+=2,j+=5){
			System.out.println(i+"*"+j+"="+i*j);
		}
		
		
		
		
		
		
		
		
	}
}
